////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CustomActionErrors.java
// AUTHOR           :   ric.yik
// DATE CREATE      :   2006/5/17
// DESCRIPTION      :   
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/5/17    ric.yik         1.0                 BugZilla #5796
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.framework.controller.action;

import java.util.Iterator;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;

public class CustomActionErrors extends ActionErrors {

    private final ActionErrors errors;

    public CustomActionErrors(ActionErrors errors) {
        super();
        this.errors = errors;
    }

    public void add(String property, ActionError error) {
        errors.add(property, error);
    }

    public void clear() {
        errors.clear();
    }

    public boolean empty() {
        return errors.empty();
    }

    public boolean equals(Object obj) {
        return errors.equals(obj);
    }

    public Iterator get() {
        return errors.get();
    }

    public Iterator get(String property) {
        return errors.get(property);
    }

    public int hashCode() {
        return errors.hashCode();
    }

    public Iterator properties() {
        return errors.properties();
    }

    public int size() {
        return errors.size();
    }

    public int size(String property) {
        return errors.size(property);
    }

    public String toString() {
        return errors.toString();
    }

}
